package com.xiaomi.pojo;

import org.springframework.context.annotation.ComponentScan;

import java.util.List;

@ComponentScan
public class OrderDetail {
	//存放订单详细信息 实体
	private int id;
	private String oid;
	private int pid;

	public OrderDetail() {
	}

	@Override
	public String toString() {
		return "OrderDetail{" +
				"id=" + id +
				", oid='" + oid + '\'' +
				", pid=" + pid +
				", num=" + num +
				", money=" + money +
				", goods=" + goods +
				", order=" + order +
				", address=" + address +
				", list=" + list +
				'}';
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getOid() {
		return oid;
	}

	public void setOid(String oid) {
		this.oid = oid;
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	public Goods getGoods() {
		return goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}

	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public List<OrderDetail> getList() {
		return list;
	}

	public void setList(List<OrderDetail> list) {
		this.list = list;
	}

	private int num;
	private double money;
	private Goods goods;
	private Order order;
	private Address address;
	private List<OrderDetail> list;

	public OrderDetail(int id, String oid, int pid, int num, double money, Goods goods, Order order, Address address, List<OrderDetail> list) {
		this.id = id;
		this.oid = oid;
		this.pid = pid;
		this.num = num;
		this.money = money;
		this.goods = goods;
		this.order = order;
		this.address = address;
		this.list = list;
	}
}
